package org.travel.app.entity;
import lombok.Data;
import org.travel.app.common.myenum.ReservationType;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author nmm
 * @date 2024-12-2024/12/10
 * @deriction 预约表信息
 */
@Data
public abstract class BaseReservation {

  Timestamp currentTimestamp = new Timestamp(System.currentTimeMillis());

  /**
     * 预约表编号
      */
  private Integer reservationId;

    /**
     * 用户编号
     */
  private Integer userId;

    /**
     * 预约时间
     */
  private Timestamp reservationTime=currentTimestamp;

    /**
     * 总价
     */
  private BigDecimal totalPrice;

    /**
     * 支付状态
     */
  private Integer status=0;

    /**
     * 预约创建时间
     */
  private Timestamp createAt=currentTimestamp;

    /**
     * 预约修改时间
     */
  private Timestamp updateAt;

  /**
   * 预约类型
   */
  private ReservationType reservationType;

  /**
   * 订单优惠信息
   */
  protected CouponDetail couponDetail;

}